﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Program_FlightChess
{
    #region 玩家类
    class Player
    {
        public enum PlayerState
        {
            stop = 1,
            move = 0
        }

        public string playerName { get; }
        public string playerString { get; }


        public PlayerState playerState = 0;

        private int playerIndex = 0;
        public int PlayerIndex { get => playerIndex; set { if (value < 0) value = 0; else playerIndex = value; } }

        public Player(string playerName, string playerString) //初始化玩家属性
        {
            this.playerName = playerName;
            this.playerString = playerString;
        }
        public void MoveFront(int count)
        {
            PlayerIndex += count;
        }
        public void MoveBack(int count)
        {
            PlayerIndex -= count;
        }
    }
    #endregion
}
